package com.situ.day22;

import com.situ.day5.Teacher;
import org.junit.Test;
import org.junit.experimental.theories.suppliers.TestedOn;

import java.util.ArrayList;
import java.util.List;

public class GenericDemo3<T> {
    public void save(T t){

    }

    public void update(T t) {

    }

    public void delete(T t) {

    }

    public static void main(String[] args) {
        GenericDemo3<Student> generic1 = new GenericDemo3<>();
        Student student = new Student();
        generic1.save(student);

        GenericDemo3<Teacher> generic2 = new GenericDemo3<>();
        Teacher teacher = new Teacher();
        generic2.save(teacher);

        List<Student> list1 = new ArrayList<>();
        List<Teacher> list2 = new ArrayList<>();
    }
}
